package ${servicePackageName}.service.business.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ${commonPackageName}.annotation.DataScope;
import ${servicePackageName}.entity.business.BusinessDatascopeExample;
import ${servicePackageName}.mapper.business.BusinessDatascopeExampleMapper;
import ${servicePackageName}.qo.business.DataScopeTestQo;
import ${servicePackageName}.service.business.IBusinessDatascopeExampleService;

/**
 * <p>
 * 数据权限demo表 服务实现类
 * </p>
 *
 * @author lizihao
 * @since 2020-11-19
 */
@Service
public class BusinessDatascopeExampleServiceImpl extends ServiceImpl<BusinessDatascopeExampleMapper, BusinessDatascopeExample> implements IBusinessDatascopeExampleService {

	/**
	 * 没有关联用户的表就不用填userAlias,反之deptAlias也是一样,否则sql会报错找不到字段
	 */
	@DataScope(deptAlias="b")
	@Override
	public List<BusinessDatascopeExample> getList(DataScopeTestQo qo) {
		return this.baseMapper.getBusiness(qo);
	}

}
